package indi.zhang.controller;

import com.alibaba.fastjson.JSONObject;
import indi.zhang.common.base.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/api/v1/test")
public class TestController {

    @PostMapping("/sendTLogMq")
    public Result<Object> sendTLogMq() {
        log.info("hello");
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id",2);
        /*MessageContent messageContent = new MessageContent("1", "TEST",jsonObject);
        MsgSenderTemplateUtils.sendEventMessageTLog(messageContent);*/
        return Result.success(null);
    }
    @PostMapping("/sendMq")
    public Result<Object> sendMq() {
        log.info("hello");
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("id",2);
        // MessageContent messageContent = new MessageContent("1", "TEST2",jsonObject);
        // MsgSenderTemplateUtils.sendEventMessage(messageContent);
        return Result.success(null);
    }
}
